package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AhhcDepartmentAuthorizationMapper;
import com.ruoyi.system.domain.AhhcDepartmentAuthorization;
import com.ruoyi.system.service.IAhhcDepartmentAuthorizationService;

/**
 * 患者可下拉选择并添加/删除Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-14
 */
@Service
public class AhhcDepartmentAuthorizationServiceImpl implements IAhhcDepartmentAuthorizationService 
{
    @Autowired
    private AhhcDepartmentAuthorizationMapper ahhcDepartmentAuthorizationMapper;

    /**
     * 查询患者可下拉选择并添加/删除
     * 
     * @param patientPhone 患者可下拉选择并添加/删除主键
     * @return 患者可下拉选择并添加/删除
     */
    @Override
    public AhhcDepartmentAuthorization selectAhhcDepartmentAuthorizationByPatientPhone(String patientPhone)
    {
        return ahhcDepartmentAuthorizationMapper.selectAhhcDepartmentAuthorizationByPatientPhone(patientPhone);
    }

    /**
     * 查询患者可下拉选择并添加/删除列表
     * 
     * @param ahhcDepartmentAuthorization 患者可下拉选择并添加/删除
     * @return 患者可下拉选择并添加/删除
     */
    @Override
    public List<AhhcDepartmentAuthorization> selectAhhcDepartmentAuthorizationList(AhhcDepartmentAuthorization ahhcDepartmentAuthorization)
    {
        return ahhcDepartmentAuthorizationMapper.selectAhhcDepartmentAuthorizationList(ahhcDepartmentAuthorization);
    }

    /**
     * 新增患者可下拉选择并添加/删除
     * 
     * @param ahhcDepartmentAuthorization 患者可下拉选择并添加/删除
     * @return 结果
     */
    @Override
    public int insertAhhcDepartmentAuthorization(AhhcDepartmentAuthorization ahhcDepartmentAuthorization)
    {
        return ahhcDepartmentAuthorizationMapper.insertAhhcDepartmentAuthorization(ahhcDepartmentAuthorization);
    }

    /**
     * 修改患者可下拉选择并添加/删除
     * 
     * @param ahhcDepartmentAuthorization 患者可下拉选择并添加/删除
     * @return 结果
     */
    @Override
    public int updateAhhcDepartmentAuthorization(AhhcDepartmentAuthorization ahhcDepartmentAuthorization)
    {
        return ahhcDepartmentAuthorizationMapper.updateAhhcDepartmentAuthorization(ahhcDepartmentAuthorization);
    }

    /**
     * 批量删除患者可下拉选择并添加/删除
     * 
     * @param patientPhones 需要删除的患者可下拉选择并添加/删除主键
     * @return 结果
     */
    @Override
    public int deleteAhhcDepartmentAuthorizationByPatientPhones(String[] patientPhones)
    {
        return ahhcDepartmentAuthorizationMapper.deleteAhhcDepartmentAuthorizationByPatientPhones(patientPhones);
    }

    /**
     * 删除患者可下拉选择并添加/删除信息
     * 
     * @param patientPhone 患者可下拉选择并添加/删除主键
     * @return 结果
     */
    @Override
    public int deleteAhhcDepartmentAuthorizationByPatientPhone(String patientPhone)
    {
        return ahhcDepartmentAuthorizationMapper.deleteAhhcDepartmentAuthorizationByPatientPhone(patientPhone);
    }
}
